//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Virginia Cavaliers vs. Navy Midshipmen','Davenport Field at Disharoon Park','Charlottesville, VA','Wednesday','5/1/2024','6:00 PM','6132567','Virginia-Cavaliers-vs--Navy-Midshipmen-5-1-2024'],['Navy Midshipmen vs. Bucknell Bison','Navy Marine Corps Memorial Stadium','Annapolis, MD','Saturday','8/31/2024','TBD','6117996','Navy-Midshipmen-vs--Bucknell-Bison-8-31-2024'],['Navy Midshipmen vs. Temple Owls','Navy Marine Corps Memorial Stadium','Annapolis, MD','Saturday','9/7/2024','TBD','6299081','Navy-Midshipmen-vs--Temple-Owls-9-7-2024'],['Navy Midshipmen vs. Memphis Tigers','Navy Marine Corps Memorial Stadium','Annapolis, MD','Saturday','9/21/2024','TBD','6299085','Navy-Midshipmen-vs--Memphis-Tigers-9-21-2024'],['UAB Blazers vs. Navy Midshipmen','Protective Stadium','Birmingham, AL','Saturday','9/28/2024','TBD','6298987','UAB-Blazers-vs--Navy-Midshipmen-9-28-2024'],['Air Force Falcons vs. Navy Midshipmen','Falcon Stadium','U.S.A.F. Academy, CO','Saturday','10/5/2024','TBD','6117628','Air-Force-Falcons-vs--Navy-Midshipmen-10-5-2024'],['Navy Midshipmen vs. Charlotte 49ers','Navy Marine Corps Memorial Stadium','Annapolis, MD','Saturday','10/19/2024','TBD','6299086','Navy-Midshipmen-vs--Charlotte-49ers-10-19-2024'],['Notre Dame Fighting Irish vs. Navy Midshipmen','MetLife Stadium','East Rutherford, NJ','Saturday','10/26/2024','TBD','6086972','Notre-Dame-Fighting-Irish-vs--Navy-Midshipmen-10-26-2024'],['PARKING: Notre Dame Fighting Irish vs. Navy Midshipmen','MetLife Stadium Parking Lots','East Rutherford, NJ','Saturday','10/26/2024','TBD','6086973','PARKING--Notre-Dame-Fighting-Irish-vs--Navy-Midshipmen-10-26-2024'],['Rice Owls vs. Navy Midshipmen','Rice Owls Stadium','Houston, TX','Saturday','11/2/2024','TBD','6299036','Rice-Owls-vs--Navy-Midshipmen-11-2-2024'],['South Florida Bulls vs. Navy Midshipmen','Raymond James Stadium','Tampa, FL','Saturday','11/9/2024','TBD','6299061','South-Florida-Bulls-vs--Navy-Midshipmen-11-9-2024'],['Navy Midshipmen vs. Tulane Green Wave','Navy Marine Corps Memorial Stadium','Annapolis, MD','Saturday','11/16/2024','TBD','6299097','Navy-Midshipmen-vs--Tulane-Green-Wave-11-16-2024'],['Navy Midshipmen vs. East Carolina Pirates (Date: TBD)','Navy Marine Corps Memorial Stadium','Annapolis, MD','Friday','11/29/2024','TBD','6299102','Navy-Midshipmen-vs--East-Carolina-Pirates--Date--TBD--11-29-2024'],['East Carolina Pirates vs. Navy Midshipmen','Dowdy-Ficklen Stadium','Greenville, NC','Saturday','11/30/2024','TBD','6299064','East-Carolina-Pirates-vs--Navy-Midshipmen-11-30-2024'],['PARKING: East Carolina Pirates vs. Navy Midshipmen','Dowdy-Ficklen Stadium Parking Lots','Greenville, NC','Saturday','11/30/2024','TBD','6299066','PARKING--East-Carolina-Pirates-vs--Navy-Midshipmen-11-30-2024'],['Navy Midshipmen vs. Army West Point Black Knights','Commanders Field','Landover, MD','Saturday','12/14/2024','TBD','6093136','Navy-Midshipmen-vs--Army-West-Point-Black-Knights-12-14-2024']],'Navy Midshipmen','http://www.ticketnetwork.com/ticket/Navy-Midshipmen-events.aspx');